package com.feihong.txgw.model.bean.deliveryAdr;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author wangziheng
 * @name txgw_app
 * @class name：com.feihong.txgw.model.bean.deliveryAdr
 * @class describe:  选择地址 poi搜索所需要的信息类
 * @time 2018/3/8 19:56
 * @change
 * @chang time
 * @class describe
 */
public class AdressSelectMapPoiInfoEntity implements Parcelable{

    /**
     * 城市名
     */
    private String city;
    private String longitude;
    private String latitude;
    /**
     * 城市id
     */
    private String cityCode;
    /**
     * 省市区拼街道接成的地址
     */
    private String address;
    /**
     * 用户选择的地址名称（ex:xx区xx大厦）
     */
    private String name;
    /**
     * 区名称
     */
    private String regionName;
    private String adcode;

    public AdressSelectMapPoiInfoEntity() {
    }

    public AdressSelectMapPoiInfoEntity(String city, String longitude, String latitude, String cityCode, String address, String name, String regionName, String adcode) {
        this.city = city;
        this.longitude = longitude;
        this.latitude = latitude;
        this.cityCode = cityCode;
        this.address = address;
        this.name = name;
        this.regionName = regionName;
        this.adcode = adcode;
    }

    protected AdressSelectMapPoiInfoEntity(Parcel in) {
        city = in.readString();
        longitude = in.readString();
        latitude = in.readString();
        cityCode = in.readString();
        address = in.readString();
        name = in.readString();
        regionName = in.readString();
        adcode = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(city);
        dest.writeString(longitude);
        dest.writeString(latitude);
        dest.writeString(cityCode);
        dest.writeString(address);
        dest.writeString(name);
        dest.writeString(regionName);
        dest.writeString(adcode);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AdressSelectMapPoiInfoEntity> CREATOR = new Creator<AdressSelectMapPoiInfoEntity>() {
        @Override
        public AdressSelectMapPoiInfoEntity createFromParcel(Parcel in) {
            return new AdressSelectMapPoiInfoEntity(in);
        }

        @Override
        public AdressSelectMapPoiInfoEntity[] newArray(int size) {
            return new AdressSelectMapPoiInfoEntity[size];
        }
    };

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getAdcode() {
        return adcode;
    }

    public void setAdcode(String adcode) {
        this.adcode = adcode;
    }
}
